﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aho.PathEditor.Business.Entities;
using System.Windows.Forms;

namespace Aho.PathEditor.Gui
{
    partial class mainwindow
    {
        public void DataReload()
        {
            Business.Services.PathService service = new Business.Services.PathService();
            this.pathEntityBindingSource.DataSource = service.GetPathFullList();
        }

        public void DataSave()
        {
            Business.Services.PathService service = new Business.Services.PathService();
            service.SavePathList((PathListEntity) this.pathEntityBindingSource.DataSource);
        }
    }
}
